<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Administration.Modules.CountriesControl"
    CodeBehind="Countries.ascx.cs" %>
<div class="section-header">
    <div class="title">
        <img src="Common/ico-configuration.png" alt="Configuration" />
        Countries
    </div>
    <div class="options">
        <input type="button" onclick="location.href='CountryAdd.aspx'" value="Add new" id="btnAddNew"
            class="adminButtonBlue" title="Add a new country" />
    </div>
</div>
<asp:GridView ID="gvCountries" runat="server" AutoGenerateColumns="False" Width="100%">
    <Columns>
        <asp:BoundField DataField="CountryID" HeaderText="CountryID" Visible="False"></asp:BoundField>
        <asp:TemplateField HeaderText="Name" ItemStyle-Width="20%">
            <ItemTemplate>
                <a href="CountryDetails.aspx?CountryID=<%#Eval("CountryID")%>" title="Edit country">
                    <%#Server.HtmlEncode(Eval("Name").ToString())%>
                </a>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="AllowsRegistration" HeaderText="Allows registration" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
        <asp:BoundField DataField="AllowsBilling" HeaderText="Allows billing" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
        <asp:BoundField DataField="AllowsShipping" HeaderText="Allows shipping" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
        <asp:BoundField DataField="TwoLetterISOCode" HeaderText="Two letter ISO Code" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
        <asp:BoundField DataField="ThreeLetterISOCode" HeaderText="Three letter ISO Code"
            HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="12%" ItemStyle-HorizontalAlign="Center">
        </asp:BoundField>
        <asp:BoundField DataField="NumericISOCode" HeaderText="Numeric ISO code" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
        <asp:BoundField DataField="Published" HeaderText="Published" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
        <asp:BoundField DataField="DisplayOrder" HeaderText="Display order" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
        <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="12%"
            ItemStyle-HorizontalAlign="Center">
            <ItemTemplate>
                <a href="CountryDetails.aspx?CountryID=<%#Eval("CountryID")%>" title="Edit country">
                    Edit</a>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
